﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PFXDemo.Library;

namespace PFXDemo.Test
{
    [TestClass]
    public class SortingUnitTests
    {
        #region Stuff
        public static PFXSorting _pfxSorting;

        public SortingUnitTests(){}
         [ClassInitialize()]
         public static void MyClassInitialize(TestContext testContext)
         {
             _pfxSorting = new PFXSorting();
         }

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext { get; set; }
        #endregion

        [TestMethod]
        public void TestSequentialSorting()
        {
            _pfxSorting.QuickSortSequential();
        }
        [TestMethod]
        public void TestParallelSortingNormal()
        {
            _pfxSorting.QuicksortParallelNormal();
        }
        [TestMethod]
        public void TestParallelSortingOtimised()
        {
            _pfxSorting.QuicksortParallelOptimised();
        }
    }
}
